package com.jvyou.app.ds.domain.entity;

import java.util.Date;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;

/**
 * 学员答题记录表(AnswerRecord)表实体类
 *
 * @author 橘柚
 * @since 2025-04-21 20:37:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ds_answer_record")
public class AnswerRecord implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 学员ID
     */     
    @TableField("student_id")      
    private Long studentId; 
      
    /**
     * 题目ID
     */     
    @TableField("question_id")      
    private Long questionId; 
      
    /**
     * 学员答案(多选题用逗号分隔)
     */     
    @TableField("student_answer")      
    private String studentAnswer; 
      
    /**
     * 是否答对(0:错误 1:正确)
     */
    @TableField("is_correct")
    private Integer isCorrect;

    /**
     * 当前答题会话
     */     
    @TableField("session_id")      
    private String sessionId; 
      
    /**
     * 创建时间
     */     
      @TableField(value = "created_at", fill = FieldFill.INSERT)      
    private LocalDateTime createdAt; 
      
    /**
     * 更新时间
     */     
      @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)      
    private LocalDateTime updatedAt; 
      
}
